package com.sy.core.model.common;

import java.io.Serializable;
import java.util.List;

/**
 * 树的实体类
 */
public class TreeNode implements Serializable {

    private String pk;
    private String label;
    private String pcode;
    private List<TreeNode> children;
    private boolean disabled;

    public TreeNode() {
    }

    public TreeNode(String pk, String label, String pcode, List<TreeNode> children, boolean disabled) {
        this.pk = pk;
        this.label = label;
        this.pcode = pcode;
        this.children = children;
        this.disabled = disabled;
    }

    public String getPk() {
        return pk;
    }

    public void setPk(String pk) {
        this.pk = pk;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getPcode() {
        return pcode;
    }

    public void setPcode(String pcode) {
        this.pcode = pcode;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }
}
